package com.jjx.trainingapi.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjx.trainingapi.common.BaseColumns;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "dc_user")
public class DcUser extends BaseColumns {

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;
    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 年级
     */
    @TableField(value = "grade_id")
    private Integer gradeId;

    /**
     * 头像地址
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_GRADE_ID = "grade_id";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LAST_UPDATE_BY = "last_update_by";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_REMOVE_FLAG = "remove_flag";

    public static final String COL_AVATAR_URL = "avatar_url";
}